package na.learn.ejb2;

import java.util.Collection;

import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;

public interface ConsumerDetailsCMPLocalHome extends EJBLocalHome {

	public abstract ConsumerDetailsCMPLocal create(Integer id, String name, Integer age,
			String number) throws CreateException;

	public abstract ConsumerDetailsCMPLocal findByPrimaryKey(Integer id)
			throws FinderException;

	public abstract Collection findByConsumerName(String name) throws FinderException;

	public abstract Collection findByConsumerAge(Integer age) throws FinderException;

	public abstract Collection findByConsumerContactNumber(String address)
			throws FinderException;

}
